<?=view('job.common.header')?>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 col-sm-12 header-bg">
            <h4 class=" col-xs-12 col-sm-12 text-center">待办任务</h4>
        </div>
        <div class="col-xs-12 col-sm-12 text-center mtop15 ">
            <div class="col-lg-6">
                <form>
                <div class="input-group mtop15">
                    <input type="text" class="form-control" name="jnum" value="<?=$request->input('jnum')?>" placeholder="请输入任务单号">
                    <span class="input-group-btn">
                        <button class="btn btn-default">查 询</button>
                    </span>
                </div><!-- /input-group -->
                </form>
            </div><!-- /.col-lg-6 -->
        </div><!-- /.row -->
    </div>
    <div class="row">
        <div class="col-xs-12 col-sm-12 xhx">
            <div class="xbt">待办任务<span> <?=count($jobs)?> </span>张</div>
        </div>
        <?php if ($jobs && count($jobs)): ?>
        <?php foreach ($jobs as $val): ?>
        <a href="<?=url("job/index/jobdetail/{$val->id}")?>" class="col-xs-12 col-sm-12 ccc xhx">
            <ul class="list-unstyled">
                <li><b>任务单号：</b><span><?=$val->jnum?></span></li>
                <li><b>客户名称：</b><span><?=$val->cname?></span></li>
                <li><b>联系方式：</b><span><?=$val->cphone?></span></li>
            </ul>
        </a>
        <?php endforeach; ?>
        <?php endif; ?>
    </div>
</div>
<script>
    var msg = '<?=$msg?>';
    if (msg != '') {
        layer.open({
            content: msg, 
            style: "background-color:#09C1FF; color:#fff; border:none;", 
            time: 2
        });
    }
</script>
<?=view('job.common.footer')?>